package com.bruce.demo2.patterns.demo2.structural.demo06.proxy.demo3;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 测试类
 * @AUTHOR CNBruceLee
 * @DATE 2021/7/15 21:55
 */
public class Test {
    @org.junit.Test
    public void test() {
        ProxyFactory factory = new ProxyFactory();
        TrainStation station = factory.getProxyObject();
        station.sell();//-->代理点收取一些服务费用(CGLib动态代理方式)  -->火车站售票
    }
}
